#
src = "abcevaefegsgdghfdefavbdr"
def count_items(src):
    src_set = set(src)
    src_dict = {}
    for i in src:
        if i not in src_dict:
            src_dict[i] = 1
        else:
            src_dict[i] += 1
    return src_dict

print( count_items(src) )
# src_set 这个是不是没有用到？